package utils;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Igor
 */
public class JPAUtil {
    private static EntityManagerFactory emf = Persistence.createEntityManagerFactory("CalendarioPU");
    
    public static EntityManagerFactory getEMF() {
        return emf;
    }
    
    public static EntityManager getEntityManager()
    {
        return emf.createEntityManager();
    }
}
